musl libc doesn't provide constant NFS_SUPER_MAGICK that is used in
the is_on_nfs_mount function.
human(format!("failed to lock file: {}", path.display()))
});
- #[cfg(target_os = "linux")]
+ #[cfg(all(target_os = "linux", not(target_env = "musl")))]
fn is_on_nfs_mount(path: &Path) -> bool {
use std::ffi::CString;
use std::mem;
}
}
- #[cfg(not(target_os = "linux"))]
+ #[cfg(any(not(target_os = "linux"), target_env = "musl"))]
fn is_on_nfs_mount(_path: &Path) -> bool {
false
}